#include "OgreURLPrecompiledHeader.h"

#include "OgreURLArchiveFactory.h"
#include "OgreURLArchive.h"

namespace Ogre
{

//-------------------------------------------------------------------------------------------------------------------------------------------------
URLArchiveFactory::URLArchiveFactory()
{
}

//-------------------------------------------------------------------------------------------------------------------------------------------------
URLArchiveFactory::~URLArchiveFactory()
{
}

//-------------------------------------------------------------------------------------------------------------------------------------------------
const String& URLArchiveFactory::getType() const
{
	static const String sFactoryName = "URL";
	return sFactoryName;
}

//-------------------------------------------------------------------------------------------------------------------------------------------------
Archive* URLArchiveFactory::createInstance( const String& name )
{
	return OGRE_NEW URLArchive( name, "URL" );
}

//-------------------------------------------------------------------------------------------------------------------------------------------------
void URLArchiveFactory::destroyInstance( Archive* arch )
{
	OGRE_DELETE arch;
}

} // end of namespace Ogre
